package com.wjj.dao.repository;

import com.wjj.dao.po.StudentPO;
import java.util.List;

/**
 * @Description
 * @Author junjun Wang
 * @Date Create in 0:10 2023/12/7
 **/
public interface StudentRepository {

	/**
	 * Get Students
	 *
	 * @return
	 */
	List<StudentPO> getStudents();

	/**
	 * Get Student By student ID
	 *
	 * @param studentId
	 * @return
	 */
	StudentPO getStudentById(Integer studentId);

	/**
	 * Add Student
	 *
	 * @param students
	 * @return
	 */
	Boolean addStudent(List<StudentPO> students);

	/**
	 * Update  Student
	 *
	 * @param student
	 * @return
	 */
	Integer updateStudent(StudentPO student);

	/**
	 * Delete Student By studentId
	 *
	 * @param studentId
	 * @return
	 */
	Integer deleteStudentById(Integer studentId);

	/**
	 * Get Student By ClassId
	 *
	 * @param classId
	 * @return
	 */
	List<StudentPO> getStudentByClassId(Integer classId);
}
